package org.azmat.mybatis.SQL.Service.Impl;

import org.azmat.mybatis.SQL.Entity.Student;
import org.azmat.mybatis.SQL.Mapper.StudentMapper;
import org.azmat.mybatis.SQL.Service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    StudentMapper studentMapper;

    @Override
    public Student findStudent(int id) {
        return studentMapper.findStudent(id);
    }

    @Override
    public void  updateStudent(Student student) {
        studentMapper.updateStudent(student);
    }

    @Override
    public Student findStudentById(int id) {
        return studentMapper.findStudentById(id);
    }



}
